<?php

use Illuminate\Database\Seeder;

class NavsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('navs')->insert([
            [
                'type'          => '2',
                'pid'           => '0',
                'name'          => '授权管理',
                'icon'          => 'layui-icon-auz',
                'link'          => '',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '1',
                'name'          => '管理员',
                'icon'          => '',
                'link'          => '/admin/index',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '2',
                'name'          => '编辑',
                'icon'          => '',
                'link'          => '/admin/edit',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '2',
                'name'          => '修改密码',
                'icon'          => '',
                'link'          => '/admin/reset',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '2',
                'name'          => '删除',
                'icon'          => '',
                'link'          => '/admin/del',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '1',
                'name'          => '角色管理',
                'icon'          => '',
                'link'          => '/role/index',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '6',
                'name'          => '编辑',
                'icon'          => '',
                'link'          => '/role/edit',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '6',
                'name'          => '删除',
                'icon'          => '',
                'link'          => '/role/del',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '0',
                'name'          => '系统管理',
                'icon'          => 'layui-icon-set',
                'link'          => '',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '9',
                'name'          => '导航管理',
                'icon'          => '',
                'link'          => '/nav/index',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '10',
                'name'          => '编辑',
                'icon'          => '',
                'link'          => '/nav/edit',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '10',
                'name'          => '排序',
                'icon'          => '',
                'link'          => '/nav/sort',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],
            [
                'type'          => '2',
                'pid'           => '10',
                'name'          => '删除',
                'icon'          => '',
                'link'          => '/nav/del',
                'created_at'    => time(),
                'updated_at'    => time(),
            ],


        ]);
    }
}
